package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.DynamicAdvert;
import com.juyu.miliao.api.service.DynamicAdvertService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 社区广告
 * wbf
 */
@RestController
@RequestMapping("/dynamic/advert")
public class DynamicAdvertController {
    @Resource
    private DynamicAdvertService dynamicAdvertService;

    @GetMapping()
    public List<DynamicAdvert> getDynamicAdvert(){
        return dynamicAdvertService.getDynamicAdvert();

    }

}
